<!DOCTYPE html>
<html lang="en">
<head>
		<?php include_once VIEWS.'/inc/head.php'; ?>
		
</head>
<body>
  <style>
		.img{
			max-width: 100%;
			display: block;
		}
    </style>

	<?php include_once VIEWS.'/inc/header.php'; ?>
	<!--头部导航-->
     <?php include_once VIEWS.'/inc/nav.php'; ?>
     <!--分隔-->
<div class="wrap clear">
       
	 <div class="banner">
		    <div class="banner-swiper swiper-container">
				<div class="swiper-wrapper">
					<div class="swiper-slide"><a href="<?php echo site_url('product/index');?>" style="background: url(<?php if(!empty($banner[0])):?><?php echo UPLOAD_URL.tag_photo($banner[0]['photo']); ?><?php endif;?>) center center no-repeat;
    width: 100%;"><img src="<?php echo static_file('mobile/img/sy_06.jpg'); ?>" alt="" style="width:100%;"></a></div>
					<div class="swiper-slide"><a href="<?php echo  site_url("product/index1"); ?>" style="background: url(<?php if(!empty($banner[1])):?><?php echo UPLOAD_URL.tag_photo($banner[1]['photo']); ?><?php endif;?>) center center no-repeat;
    width: 100%;"><img src="<?php echo static_file('mobile/img/sy1_06.jpg'); ?>" alt="" style="width:100%;"></a></div>
					<div class="swiper-slide"><a href="<?php echo  site_url("product/index2"); ?>" style="background: url(<?php if(!empty($banner[2])):?><?php echo UPLOAD_URL.tag_photo($banner[2]['photo']); ?><?php endif;?>) center center no-repeat;
    width: 100%;"><img src="<?php echo static_file('mobile/img/sy2_06.jpg'); ?>" alt="" style="width:100%;"></a></div>
					</div>
				<div class="pagination"></div>
			</div>
		</div>
		<!--banner大图-->

	 <!--分隔-->
	 <div class="mess clear">
		
	 </div>
	 <!--分隔-->
	 
	 <!--分隔-->

  
  </div>

 
	<!--商业区域-->

</body>
</html>


<script type="text/javascript">
    
	//Banner 切换
	var swiper = new Swiper('.banner-swiper', {
		loop: true,
		pagination : '.banner .pagination',
		autoplay: 5000
	});
	$(".banner").on('touchmove',function(){
		swiper.startAutoplay()
	});

	
</script>



